import service from '../utils/service.js';
import { GetApiUrl } from "@/utils/use-config";
const url = GetApiUrl('BasicsApi');
// 获取页面的全部配置信息，保存到indexDB中
const getMenuPageConfigInfo = menuId => {
    return service({
        url: url + "SysMenuInfo/getMenuPageConfigInfo",
        method: "get",
        params: { menuId },
    });
}

// 获取页面菜单版本号
const getMenuVersion = menuId => {
    return service({
        url: url + "SysMenuInfo/getMenuVersionNo",
        method: "get",
        params: { menuId },
    });
}

export {
    getMenuPageConfigInfo,
    getMenuVersion
}